package edu.intprog.mail;

public class PasswordMailer extends BaseMailer {

	static final String _from = "nomi_and_assaf@egreeting.edu";
	static final String _subject = "E-Greeting: Password reminder";
	public static final String _emailAddrParamName = "emailAddr";
	private String _userPassword = "";
	
	public PasswordMailer(String userPassword, String recipientEmail) {
		super(_from, recipientEmail);
		_userPassword = userPassword;
	}

	@Override
	public String buildMessageBody(String startServletUrl) {
		String message = "Hi, <br/> This is your password reminder for the E-Greeting site.<br/><br/>" +
						 "You will be able to login the E-Greeting site with your E-Mail address and the following password: ";
		message = message + _userPassword + "<br />";
		message = message + "Getting to the E-Greeting site is possible from <a href=\"";
		message = message + startServletUrl + "\">this link</a>.";
		message = message + "<br/><br/>Thanks,<br/>Nomi & Assaf";
		return message;
	}

	@Override
	public String get_subject() {
		return _subject;
	}

}
